# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-can
_pkgname=can
pkgver=3.3.2
pkgrel=7
pkgdesc='The can package provides controller area network support for Python developers.'
arch=('any')
url='https://github.com/hardbyte/python-can/releases'
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://github.com/hardbyte/python-can/archive/$pkgver.final.tar.gz")
sha512sums=('c98103733e1d0219e2945179c1861f65814728794b0317043ff1d8279c4d3007336139afabdebdb28cc8689b6b65f69fa5918479893634d99e9bfadfeb5c1456')

build() {
  cd "$pkgname-$pkgver.final"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver.final"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

